/**
 * Created by yuanlian on 2016/8/8.
 */
function RegisterModel(API, $resource){
    this.url     = API + '/api/appCarBrand/getCarBrandById/:id'
    this.params  = { id: '@id' }
    this.actions = {}

    this.actions.getSecurityCode = {
        method: 'GET',
        url: API + '/api/v1/analytics/sendMail/:phone',

    }
    this.actions.register = {
        method: 'POST',
        url: API + '/api/v1/analytics/register',

    }




    return $resource.call(this, this.url, this.params, this.actions)
};